package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "transaction_record")
public class TransactionRecord {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 银行卡编号
     */
    @TableField(value = "bank_card_id")
    private Integer bankCardId;

    /**
     * 交易类型：0转入，1转出
     */
    @TableField(value = "transaction_type")
    private Integer transactionType;

    /**
     * 交易时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 交易金额
     */
    @TableField(value = "transaction_money")
    private Double transactionMoney;

    /**
     * 银行卡编号，被转入或者转出的银行卡编号
     */
    @TableField(value = "bank_card_no")
    private Integer bankCardNo;
}